<%@page import="myclass.huodong"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"

    pageEncoding="UTF-8"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>

<head>

         <title>用户修改页面</title>

</head>
<style type="text/css">
   div {
    margin: 0 660px;
   }
   p {
    display: inline;
   }
   
   h2 {
    text-align: center;
    color: blue;
   }
   .xx{
    height: 1000px;
    width: 500;
    
   }
   
   .ys {
   Font-size:25px;
    color: green;
   }
 </style>
<body>
 <div class="xx">
<%
String zhuti=request.getParameter("zhuti");
String mudi=request.getParameter("mudi");
String leixing=request.getParameter("leixing");
String shijian=request.getParameter("shijian");
String didian=request.getParameter("didian");
String shetuan=request.getParameter("shetuan");
String quanti=request.getParameter("quanti");
String leirong=request.getParameter("leirong");
String anpai=request.getParameter("anpai");
	huodong cha=new huodong();
	String str= cha.chaxun(zhuti, null, null, null);
	if(str==null)
	{
		%>
		<script type="text/javascript" >
			alert("错误:该活动不存在。");         //弹出提示框输出错误信息
			window.location='modify.jsp' ;     //跳转到登录界面
		</script>
		<%
	}
	%>
	<p class="ys">修改前<br></p>
	<p class="ys"><%out.println(str); %></p><br>
	<% 
	cha.xiugai(zhuti, mudi, leixing, shijian, didian, shetuan, quanti, leirong, anpai);
	str= cha.chaxun(zhuti, null, null, null);
	%>
	<p class="ys">修改后<br></p>
	<p class="ys"><%out.println(str); %></p>
</div>
</body>
</html>